<?php

namespace App\Models;
/**
 * @OA\Schema(
 * 	schema="schemaDemoIndex",
 * 	example={"code": "1", "data": {}, "message": "message"},
 * 	@OA\Property(property="code",ref="#/components/schemas/BaseFieldCode"),
 * 	@OA\Property(property="message",ref="#/components/schemas/BaseFieldMessage"),
 * 	@OA\Property(
 * 		property="data",
 * 		type="array",
 * 		description="data",
 * 		@OA\Items(
 * 			@OA\Property(
 * 				property="firstName",
 * 				type="string",
 * 				description="姓"
 * 			),
 * 			@OA\Property(
 * 				property="lastName",
 * 				type="string",
 * 				description="名"
 * 			)
 * 		)
 * 	),
 * )
 */
class DemoModel extends BaseModel
{
	
    //指定链接DB
    protected $connection = '';
    protected $table = 'area';
    
    protected $fillable = [
        'name', 'code',
    ];

    /**
     * The attributes excluded from the model's JSON form.
     *
     * @var array
     */
    protected $hidden = [
        'pid',
    ];
}
